<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <base href="<%=basePath%>" />
    <style>
        .content{margin-left:auto;marign-right:auto;width:1000px;}
    </style>

</head>

<body>
<div class="content">
    <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
        <thead>
        <tr>
            <th>学生编号</th>
            <th>姓名</th>
            <th colspan="3">操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach var="student" items="${students}">
            <tr>
                <td>${student.sno}</td>
                <td>${student.name}</td>

                <td><a href="student/queryStudentsBySnoRelation/${student.sno}">详情</a></td>
                <td><a href="update.jsp?sno=${student.sno}">修改</a></td>
            </tr>

        </c:forEach>
        <tr><td colspan="9"><a href="page/arrive/student/add">新增</a></tr>
        </tbody>
    </table>
</div>
</body>

</html>
